package com.hnnou.freshmenappserver.service.impl;

import com.hnnou.freshmenappserver.bean.Announcement;
import com.hnnou.freshmenappserver.dao.AnnouncementDao;
import com.hnnou.freshmenappserver.service.AnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnnouncementServiceImpl implements AnnouncementService {
    @Autowired
    AnnouncementDao announcementDao;

    public List<Announcement> findAll() {
        return announcementDao.findAll();
    }

    @Override
    public Announcement selectById(Integer id) {

        return null;
    }

    @Override
    public int deleteById(Integer id) {
        return 0;
    }

    @Override
    public int update(Announcement announcement) {
        return 0;
    }

    @Override
    public int insert(Announcement announcement) {
        return 0;
    }
}
